//考试科目编辑页面。
Ext.define("ES.view.catalog.CatalogEdit",{
    extend:"Ext.window.Window",
    alias:"widget.catalogEdit",
    title:"科目设置",
    width:400,
    height:240,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:72,//标签宽度。
            labelAlign:"right",
            allowBlank:true,//是否允许为空。
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{ 
                    xtype:"combo",
                    fieldLabel:"上级科目",
                    emptyText:"====上级科目====",
                    name:"parentCatalogID",
                    typeAhead:true,
                    triggerAction:"all",
                    selectOnTab:true,
                    store:"NotSelfCatalogStore",
                    displayField:"fullFieldName",
                    valueField:"fieldID",
                    queryMode:"local",
                    lazyRender:true,
                    columnWidth:1
                 }, {
                    fieldLabel:"科目代码",
                    name:"catalogCode",
                    columnWidth:1,
                    allowBlank:false
                 },{
                    fieldLabel:"科目名称",
                    name:"catalogName",
                    columnWidth:1,
                    allowBlank:false
                 },{
                    fieldLabel:"科目类型",
                    xtype:"checkboxfield",
                    boxLabel:"客户端标识",
                    inputValue:"1",
                    checked:false,
                    name:"catalogType",
                    columnWidth:1,
                    allowBlank:false
                 },{
                    fieldLabel:"描述信息",
                    xtype:"textareafield",
                    grow:true,
                    autoScroll:true,
                    name:"description",
                    columnWidth:1
                 }],
    buttons:[{
                text:"保存",
                action:"btnSave",
                formBind:true,
                disabled:true,
                tooltip:"保存数据"
            },{
                text:"取消",
                action:"btnCancel",
                tooltip:"关闭窗口"
            }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})